import { viewsModule } from "./modules/views";
//import { permissionModule } from "./modules/permission";
import { userModule } from "./modules/user";
import { socketModule } from "./modules/socket";

export interface IAppStore {
    viewsModule: ReturnType<typeof viewsModule>;
    //permissionModule: ReturnType<typeof permissionModule>;
    userModule: ReturnType<typeof userModule>;
    socketModule: ReturnType<typeof socketModule>;
}

const appStore: IAppStore = {} as IAppStore;

export const registerStore = () => {
    appStore.viewsModule = viewsModule();
   //appStore.permissionModule = permissionModule();
    appStore.userModule = userModule();
    appStore.socketModule = socketModule();
};

export default appStore;